package com.greedy.order.mapper;

import com.greedy.order.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: Greedy
 * @Date: Created in:2022-07-19 15:09
 * Description:
 */
@Mapper
public interface OrderMapper {

    /**
     * 根据Id查询订单表所有数据
     *
     * @param id
     * @return
     */
    @Select("select id,name,price,num,user_id from tb_order where id = #{id}")
    Order getOrderById(Long id);

}
